package cn.kgc.spring.entity;

import lombok.Setter;

/**
 * @author: mosin
 * @version: v1.0  2022/6/30
 *演示使用构造方法完成对象属性的初始化
 */
@Setter
public class Student {

    private  String stuName;
    private String stuNo;
    private Integer age;
    private Double score;


    public Student(){

    }


    public Student(String stuName){
        this.stuName =stuName;
    }


    public Student(String stuName, String stuNo){
        this.stuName = stuName;
        this.stuNo = stuNo;
    }
    public Student(String stuName, String stuNo, Integer age, Double score) {
        this.stuName = stuName;
        this.stuNo = stuNo;
        this.age = age;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuName='" + stuName + '\'' +
                ", stuNo='" + stuNo + '\'' +
                ", age=" + age +
                ", score=" + score +
                '}';
    }
}
